package com.cssl.mapper;

import com.cssl.domain.DtsComment;
import com.cssl.domain.dto.AddComment;
import com.cssl.domain.dto.DtsCommentDto;
import com.cssl.domain.vo.DtsCommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsCommentMapper {
    List<Integer> getUserComment(DtsCommentDto comment);

    Integer addComment(@Param("userId") int loginIdAsInt, @Param("comment") AddComment comment, @Param("url") String urls);

//    List<DtsComment> getComment(DtsCommentDto comment);

    /**
     * 获取商品评论列表
     *
     * @param commentVO
     * @return
     */
    List<DtsCommentVO> getCommentVOGoodsList(DtsCommentVO commentVO);

    /**
     * 删除商品评论
     *
     * @param id
     * @return
     */
    Integer deleteComment(Integer id);
}
